-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Js fixtess #51
Js fixtess #51
Conversation
JansenSmith
commented
Jul 31, 2024
I'm really struggling to get it any more tested than it is, until it's in a release. need to work on my framework's build env. |
shifting to doxygen |
This set of methods provides various ways to tessellate a given CSG object into either a 3D grid (using tessellate) or a 2D grid (using tessellateXY), by specifying the number of steps (iterations) and grid spacing, with optional offsets for odd rows, columns, and layers. |
Hmm, how might you represent a Ca2SiO4-Mg2SiO4-Fe2SiO4 crystal? I assume each element would be its own shape, but how would the regular crystal shape be represented? |
For testing static methods like this, just making methods in a Groovy script and calling them is enough to demonstrate that they work. In the future link the testing repo to the PR for future folks reading it. |
@madhephaestus nerdiest and cutest question ever! |
Maybe make a helper method like the hex ones once you work it out? |
yeah, a basic crystal lattice helper that does stacking was something i wanted to do, but i ran out of steam. hmm. |
you dont need to over-generalize it, just make a few specific ones as examples and folks will work out for themselves how to use it and extend it if needed. What might be useful would be to have it hull between shapes to represent "bonds". then if you make a diamond lattuce, and tell it to hull the bonds, it actually makes a volumetrically strong and sparse structure that is actually useful... |
this is also getting into an area where OO becomes helpful, to represent the molicules and thier relative bonding angles... |